package counter;

public class SynchronizedCounter implements Counter {
    private long count;
    
    @Override
    public synchronized void increment() {
        count++;
    }

    @Override
    public synchronized long getCounter() {
        return count;
    }
    
    @Override
    public String toString() {
        return "Synchronized";
    }

}
